//package com.bjtang.book.controller;
//
//import java.util.List;
//
//import javax.validation.Valid;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.validation.annotation.Validated;
//import org.springframework.web.bind.annotation.DeleteMapping;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.PutMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import com.bjtang.book.dto.IdDto;
//import com.bjtang.book.dto.ReturnDto;
//import com.bjtang.book.entiy.SysUser;
//import com.bjtang.book.service.SysUserDtoService;
//import com.bjtang.book.util.RSA加密;
//import com.bjtang.book.util.ReturnUtil;
//
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//
//@Api(tags = "用户综合管理")
//@Validated
//@RestController
//@RequestMapping(value = "/user-dto/")
//public class UserDtoController {
//	@Autowired
//	private SysUserDtoService sysUserDtoService;
//
////	@ApiOperation("新建用户")
////	@PostMapping("/")
////	public ReturnDto addUser(@RequestBody @Valid SysUser sysUser) {
////		// 注入加密密码
////		sysUser.setPassword(new RSA加密().加密(sysUser.getPassword()));
////		return ReturnUtil.success(sysUserDtoService.addUser(sysUser));
////	}
////
////	@ApiOperation("删除用户")
////	@DeleteMapping("/")
////	public ReturnDto deleteUserById(@RequestBody @Valid IdDto sysUserId) {
////		return ReturnUtil.success(sysUserDtoService.deleteUserById(sysUserId.getId()));
////	}
////
////	@ApiOperation("更新用户")
////	@PutMapping("/")
////	public ReturnDto updateUserById(@RequestBody @Valid SysUser sysUser) {
////		// 注入加密密码
////		if (sysUser.getPassword() != null && sysUser.getPassword().length() > 0)
////			sysUser.setPassword(new RSA加密().加密(sysUser.getPassword()));
////		return ReturnUtil.success(sysUserDtoService.updateUserById(sysUser));
////	}
////
////	@ApiOperation("查询用户列表")
////	@GetMapping("/")
////	public ReturnDto GetUserById() {
////		return ReturnUtil.success(sysUserDtoService.selectUsers());
////	}
//
//	@ApiOperation("查询用户列表公开信息ByidList")
//	@PostMapping("/open/")
//	public ReturnDto GetUserByIdList(@RequestBody List<Long> idList) {
//		return ReturnUtil.success(sysUserDtoService.selectUserNameByIdList(idList));
//	}
//}
